<?php


function getClient($cid){
	$client = M('client')->where(array('id' => $cid))->find();	
	return $client['client_name'];
}

function timeToDate($int){	
	return date('Y-m-d H:i',$int);
}
function timeToDate_date($int){
    return date('Y-m-d',$int);
    
}

function getContent($id){
	$list = M('out_content')->where(array('fid' => $id))->select();
	foreach($list as $k => $v){
		$str .= ($k+1).'.'.$v['content'].' ';
	}
	return mb_substr($str,0,25);
	
	
}
